
package org.codebase.spring.framework.base.bean;

import org.springframework.beans.factory.annotation.Autowired;

public class Demo implements Parent {

    @Autowired
    Parent demo1;
	
	/*public Demo() {
		super();
	}
	
	public Demo(Parent demo1) {
		super();
		this.demo1 = demo1;
	}*/

    @Override
    public void play() {
        demo1.play();
    }

    public void play1() {
        System.out.println("demo play");
    }

	

	/*public void setDemo1(Demo1 demo1) {
		this.demo1 = demo1;
	}
	*/

}
